package com.lyx.Exercise.Comparator;

import com.lyx.Exercise.entity.Stu;

import java.util.Comparator;

public class StuScoreComparator implements Comparator<Stu> {
    @Override
    public int compare(Stu o1, Stu o2) {
        return -(o1.getScore() - o2.getScore());
    }
}
